package com.homework.api_user.services;

import com.homework.dao.domain.Token;
import com.homework.util.ResultMsg;

public interface UserService {
    /**
     * 注册
     * @return
     */
    public ResultMsg register(String email, String passwd, String authCode);

    /**
     * 判断是否已经注册
     * @return
     */
    public boolean isRegister(String email);

    /**
     * 登录
     * @return
     */
    public Token login(String email, String passwd);

    public String getInfoByToken(String token);
}
